package com.bw.cashier.adapter

import android.widget.CheckBox
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bw.cashier.R
import com.bw.cashier.entity.ChargeDataEntityItem
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class BillChargeAdapter:BaseQuickAdapter<ChargeDataEntityItem,BaseViewHolder>(R.layout.item_cashier_detail) {
    override fun convert(holder: BaseViewHolder, item: ChargeDataEntityItem) {
        holder.getView<TextView>(R.id.item_bill_detail_date).text = item.effectiveDate.substring(0,7)
//        var adapter = BillChargeItemAdapter()
//        holder.getView<RecyclerView>(R.id.item_cashier_item).adapter = adapter




    }
}

//class BillChargeItemAdapter:BaseQuickAdapter<ChargeDataEntityItem,BaseViewHolder>(R.layout.item_cashier_detail_item){
//    override fun convert(holder: BaseViewHolder, item: ChargeDataEntityItem) {
////        holder.getView<CheckBox>(R.id.checked).isChecked = item.isChecked
////        holder.getView<TextView>(R.id.cashier_rv_type).text = item.chargeType
////        holder.getView<TextView>(R.id.cashier_rv_date).text = item.paymentTime
////        holder.getView<TextView>(R.id.cashier_money).text = "￥${item.actualAmount}.00"
//
//    }
//
//}